package com.stedu.mall.goodsservice.mapper;

import com.stedu.mall.common.bean.Goods;

import java.util.List;
import java.util.Map;

public interface GoodsMapper {
    int insert (Goods goods);
    int delete(Integer id);
    int update(Goods goods);
    List<Goods> selectByCondtion(Goods condition);
    //根据条件查询--注意分类的id可能是父分类的也可能是子分类的
    List<Goods> selectByCondtion1(Goods condition);
    Goods selectById(Integer id);

    List<Goods> selectByCategoryId(Integer id);

    List<Map<String, Object>> selectByGroupByCategory();
}
